package com.example.tasksmcpserver.service;

import com.example.tasksmcpserver.vo.FwxxVO;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

@Service
public class FwxxService {
    @Tool(name = "查询可选的房屋信息", description = "返回房屋信息列表")
    public List<FwxxVO> findFwxxList() {
        FwxxVO fwxxVO1 = new FwxxVO();
        fwxxVO1.setFwzl("高林居住区高林小区3-24#-2-1202");
        fwxxVO1.setAreaCode("010");
        fwxxVO1.setFwzj("800元/月");
        FwxxVO fwxxVO2 = new FwxxVO();
        fwxxVO2.setFwzl("祥和三里58号3504室");
        fwxxVO2.setAreaCode("010");
        fwxxVO2.setFwzj("1000元/月");

        return Arrays.asList(fwxxVO1, fwxxVO2);
    }
}